package com.intelligent.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 客户对账明细表
 * @TableName customer_reconciliation_detail
 */
@TableName(value ="customer_reconciliation_detail")
@Data
public class CustomerReconciliationDetail implements Serializable {
    /**
     * 明细ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 对账单主表ID
     */
    private Long reconciliationId;

    /**
     * 产品表
     */
    private Long productId;

    /**
     * 销售订单ID
     */
    private Long salesOrderId;

    /**
     * 收款单ID
     */
    private Long receiptOrderId;

    /**
     * 退款单ID
     */
    private Long refundOrderId;

    /**
     * 本次对账金额
     */
    private BigDecimal amount;

    /**
     * 已收款金额
     */
    private BigDecimal receivedAmount;

    /**
     * 待收款金额
     */
    private BigDecimal toReceiveAmount;

    /**
     * 已退款金额
     */
    private BigDecimal refundAmount;

    /**
     * 出库单ID
     */
    private Long outboundOrderId;

    /**
     * 入库单ID
     */
    private Long inboundOrderId;

    /**
     * 创建时间
     */
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}